package cn.fancylab.template.web.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cn.fancylab.template.untrans.OpenFireService;

@Controller
public class CommonController extends AnnotationController {

	@Autowired
	@Qualifier("openFireService")
	protected OpenFireService openFireService;

	@RequestMapping(value = "/opendoor.xhtml", method = RequestMethod.GET)
	public String opendoor(ModelMap model, String TARGETURL) {
		dbLogger.error("opendoor");
		openFireService.sendMessage("hansheng@wrpc", "1dsfdsfsdfsf", "1231321", null);
		return "login.vm";
	}
}
